<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge, chrome=1">
    <link rel="stylesheet" href="../css/bootstrap.css">
    <link rel="stylesheet" href="../css/f_depGl.css">
    <title>Document</title>
</head>

<body>
    <div class="widthArr">
        <!-- 标题 -->
        <p>部门管理</p>
        <!-- 添加和搜索 -->
        <div class="btnLeft clearfix">
            <button id="addShuJu" class="btn btn-info" type="button">添加<button><input type="text" id="queryDep" class="form-control" placeholder="请输入搜索内容">
        </div>
        <!-- 表格内容 -->
        <table class="table table-hover" id="ftabBox">
            <thead>
                <tr>
                    <td>部门ID</td>
                    <td>部门名称</td>
                    <td>成立时间</td>
                    <td>部门描述</td>
                    <td>操作</td>
                </tr>
            </thead>
            <!-- 内容 -->
            <tbody id="ftbody">

            </tbody>
        </table>
        <!-- 分页 -->
        <div id="divPage"></div>
        <!-- 添加的模态框 -->
        <div class="modal fade" tabindex="-1" role="dialog" id="addmodal">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">添加新部门</h4>
        </div>
        <div class="modal-body">
            <div>
                <table id="addTable">
                    <tr id="tr1">
                        <td>部门名称</td>
                        <td><input type="text" id="newDepName" class="form-control"></td>
                        <td id="qsrName"></td>
                    </tr>
                    <tr id="tr2">
                        <td>成立时间</td>
                        <td><input type="date" id="newDepTime" class="form-control"></td>
                        <td id="qsrTime"></td>
                    </tr>
                    <tr id="tr3">
                        <td>部门描述</td>
                        <td><textarea cols="22" rows="3" id="newDepDescribe" class="form-control"></textarea></td>
                        <td id="qsrDescribe"></td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-info" data-dismiss="modal" id="addNewDepBtn">添加</button>
            <button type="button" class="btn btn-primary" id="cancelAddBtn">取消</button>
        </div>
    </div>
    <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
    </div>
    <!-- /.modal -->
    <!--修改的模态框 -->
    <div class="modal fade" tabindex="-1" role="dialog" id="correct">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">修改部门信息</h4>
                </div>
                <div class="modal-body">
                    <div>
                        <table id="modTable">
                            <tr id="tr1">
                                <td>部门名称</td>
                                <td><input type="text" id="modDepName" class="form-control"></td>
                                <td id="modqsrName"></td>
                            </tr>
                            <tr>
                                <td>成立时间</td>
                                <td><input type="date" id="modDepTime" class="form-control"></td>
                                <td id="modqsrTime"></td>
                            </tr>
                            <tr>
                                <td>部门描述</td>
                                <td><textarea cols="22" rows="3" id="modDepDescribe" class="form-control"></textarea></td>
                                <td id="qsrDescribemod"></td>
                            </tr>

                        </table>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-success" data-dismiss="modal" id="modDepBtn">修改</button>
                    <button type="button" class="btn btn-primary" id="cancelmodDep">取消</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
    <!-- 修改成功的模态框 -->
    <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" id="modifySuccess">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">提示</h4>
                </div>
                <div class="modal-body">
                    <p>修改成功</p>
                </div>
            </div>
        </div>
    </div>
    <!-- 修改失败模态框 -->
    <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" id="modifyFailMod">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">提示</h4>
                </div>
                <div class="modal-body">
                    <p>修改失败，请输入正确信息</p>
                </div>
            </div>
        </div>
    </div>
    <!-- /.modal -->
    <!-- 添加失败模态框 -->
    <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" id="addSb">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">提示</h4>
                </div>
                <div class="modal-body">
                    <p>添加失败，请输入正确信息</p>
                </div>
            </div>
        </div>
    </div>
    <!-- 添加成功模态框 -->
    <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" id="addCg">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">提示</h4>
                </div>
                <div class="modal-body">
                    <p>添加成功</p>
                </div>
            </div>
        </div>
    </div>
    <!-- 删除的提示框 -->
    <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" id="detDel">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">提示</h4>
                </div>
                <div class="modal-body">
                    <p>确定删除吗？</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" id="determineDel">确定</button>
                    <button type="button" class="btn btn-primary" id="determineCancel">取消</button>
                </div>
            </div>
        </div>
    </div>
    <!-- 删除成功的模态框 -->
    <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" id="deleteSuccessModal">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">提示</h4>
                </div>
                <div class="modal-body">
                    <p>删除成功</p>
                </div>
            </div>
        </div>
    </div>
    </div>

    <script src="../js/jquery-3.5.1.js"></script>
    <script src="../js/bootstrap.js"></script>
    <!-- <script src="../js/shuju.js"></script> -->
    <script src="../js/f_depGl.js"></script>
</body>

</html>